/**
 * @Title:UserManageBusinessService.java
 * @Package com.cnooc.business.common
 * @Description TODO
 * @author Jiangcl
 * @date 2012-2-16下午01:24:18
 * @version V1.0
 */
package com.cat.business;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.dom4j.DocumentException;

import com.abigdreamer.arkflow.WorkflowNode;
import com.cat.bean.FlowProcessVo;
import com.cat.entity.BizWorkflow;
import com.cat.util.TwoTuple;

/**
 * @ClassName: UserManageBusinessService
 * @Description: TODO(这里用一句话描述这个类的作用)
 * @author Jiangcl
 * @date 2012-2-16下午01:24:18
 * 
 */
public interface BizWorkFlowBusinessService {

	BizWorkflow getByDeploymentId(Integer deploymentId);

	Boolean saveWork(BizWorkflow entity);

	void delete(BizWorkflow entity);

	TwoTuple<List<WorkflowNode>, WorkflowNode> getJson(String jsonStr) throws DocumentException;

	String addWorkflow(List<WorkflowNode> states, HashMap<String, String> idNameMap, WorkflowNode workflow) throws Exception;
	List<BizWorkflow> getByWorkflowName(String workflowName);
}
